<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>工艺管理列表</title>
		<link rel="stylesheet" type="text/css" href="../../css/style.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/list.css"/>
		<link rel="stylesheet" href="../../css/ztree/productTree.css" type="text/css">
		<link rel="stylesheet" href="../../css/ztree/zTreeStyle.css" type="text/css">
	</head>
	<body>
		<!-- 蓝色背景区域 -->
		<div class="wrap"> 
			<!-- 白色可用区域 -->
			<div class="canuse">
				<!------ 位置 ------>
	            <p class="contentText local"><span>位置：基础数据管理 > 工艺管理</span></p>
	            
	            <div class = "flex-td-15 floatLeft" style="height: 100%;background: rgb(245, 250, 255);min-height: 400px;">
	            	<input style="width: 82px; margin: 5px 0 0 10px;" type="text" name="" id="projectSearch" value="" />
					<span style="margin-left: 10px; text-indent: 22px;" class="bgd_blue_search" onclick="TaskList.projectSearch();">查询</span>
					<div  id="productTree" class="ztree"></div>
				</div>
	            <div class = "flex-td-85 floatLeft">
	            
	            <!-- 列表区 -->
	            <div class="show_list">
                	<div class="title_operate">
                    	<h4 class="sel_title"><img src="../../img/list/brand1.png" /><span>工艺管理列表</span></h4>
                		
                        <!-- 操作类型区 -->
                        <div class="operate_area">
							<!--<a class="bgd_add img_hand" id="toAddJsp" >增加</a>-->
							<a class="bgd_delete img_hand" id="del" >删除</a>
							<a class="bgd_modify img_hand" id="toUpdateJsp" >编辑</a>
                        </div>
                	</div>
                	<div class="list_area">
                        <!-- 信息列表区 -->
	                	<div id="tableArea">
                        <div class="info_area">
                            <table class="tablelist" border="1" cellspacing="0" cellpadding="0">
                                <tbody>
                                    <tr class="menuText list_head">
                                        <th class="checkSelectAll"></th>
                                        <th class="">工艺编号</th>
                                        <th class="">零部件号</th>
                                        <th class="">产品代号</th>
                                        <th class="">工艺规程名称</th>
										<th class="">工艺类型</th>										
                                        <th class="">工艺版本</th>
                                        <th class="">工艺阶段</th>
                                        
                                        <th class="">主管人</th>
                                        <th class="">创建人</th>
                                        <th class="">创建日期</th>
                                        <th class="">修改人</th>
                                        <th class="">修改日期</th>
                                        <th class="">是否有效</th>
                                        
                                        <th class="">备注</th>
                                    </tr>
                                </tbody>
                                <tbody class="tablelist">
                                    <tr class="listTableText list_list">
                                        <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="cursor editBlue" href="javascript:void(0)" onclick="showChildInfo(001)">工艺20</a></td>
                                        <td>零件 1-1</td>
                                        <td>产品1</td>
                                        <td>规程名01</td>
                                        <td>装配</td>
                                        <td>手动版本</td>
                                        <td>测试阶段</td>
                                        <td>administrator</td>
                                        <td>admin</td>
                                        <td>2020-01-01</td>
                                        <td></td>
                                        <td></td>
                                        <td>否</td>
                                        <td>备注测试</td>
                                    </tr>
                                    <tr class="listTableText list_list">
                                        <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="cursor editBlue" href="javascript:void(0)" onclick="showChildInfo(001)">工艺20</a></td>
                                        <td>零件 1-1</td>
                                        <td>产品1</td>
                                        <td>规程名01</td>
                                        
                                         <td>装配</td>
                                        <td>手动版本</td>
                                        <td>测试阶段</td>
                                        
                                        <td>administrator</td>
                                        <td>admin</td>
                                        <td>2020-01-01</td>
                                        <td></td>
                                        <td></td>
                                        <td>否</td>
                                        
                                        
                                        <td>备注测试</td>
                                    </tr>
                                    <tr class="listTableText list_list">
                                        <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
                                        <td><a class="cursor editBlue" href="javascript:void(0)" onclick="showChildInfo(001)">工艺20</a></td>
                                        <td>零件 1-1</td>
                                        <td>产品1</td>
                                        <td>规程名01</td>
                                        
                                         <td>装配</td>
                                        <td>自动版本</td>
                                        <td>测试阶段</td>
                                        
                                        <td>administrator</td>
                                        <td>admin</td>
                                        <td>2020-01-01</td>
                                        <td></td>
                                        <td></td>
                                        <td>否</td>
                                        
                                        
                                        <td>备注测试</td>
                                    </tr>
									
									<tr class="listTableText list_list">
									    <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
									    <td><a class="cursor editBlue" href="javascript:void(0)" onclick="showChildInfo(002)">工艺20</a></td>
									    <td>通用零部件</td>
									    <td>产品1</td>
									    <td>规程名01</td>
									    
									     <td>返修</td>
									    <td>自动版本</td>
									    <td>测试阶段</td>
									    
									    <td>administrator</td>
									    <td>admin</td>
									    <td>2020-01-01</td>
									    <td></td>
									    <td></td>
									    <td>否</td>
									    
									    
									    <td>备注测试</td>
									</tr>
									
									
									<tr class="listTableText list_list">
									    <td><input type="checkbox" class="input_checkBox" name="" id="" value=""></td>
									    <td><a class="cursor editBlue" href="javascript:void(0)" onclick="showChildInfo(002)">工艺20</a></td>
									    <td>通用零部件</td>
									    <td>产品1</td>
									    <td>规程名01</td>
									    
									     <td>返修</td>
									    <td>手动版本</td>
									    <td>测试阶段</td>
									    
									    <td>administrator</td>
									    <td>admin</td>
									    <td>2020-01-01</td>
									    <td></td>
									    <td></td>
									    <td>否</td>
									    
									    
									    <td>备注测试</td>
									</tr>
                                    
                                </tbody>

                            </table>
                        </div>
	                    <!-- 页码区域 -->
	                    <div class="page_area contentText clear">
	                    	<div class="page_sum">
	                    		共<span class="page_number"> 3 </span>页&emsp;每页 10 条&emsp;共<span class="info_sum"> 3 </span>条记录
	                    	</div>
	                        <div class="page_jump">
	                        	<span>跳转到&emsp;第</span>
	                        	<input type="text" name="" id="" value="" />
	                        	<span>页&emsp;</span>
	                        	<button>Go</button>
	                        </div>
	                        <div class="page-pull-right async-page">
	                            <button>上一页</button>
	                            <button class="select_page">1</button>
	                            <button>2</button>
	                            <button>3</button>
	                            <button style="color: rgb(30, 30, 30);">▪▪▪</button>
	                            <button>98</button>
	                            <button>99</button>
	                            <button>100</button>
	                            <button>下一页</button>
	                        </div>
	                    </div>
                	<div>
                    </div>
                </div>
                <div id="childTableArea" class="hidden">
                	<div class="info_area">
                            <table class="tablelist" border="1" cellspacing="0" cellpadding="0">
                                <tbody>
                                    <tr class="menuText list_head">
                                    	<th class="">序号</th>
                                        <th class="">工序编号</th>
                                        <th class="">工序名称</th>
                                        <th class="">工序类型</th>
                                  
                                        <th class="">标准作业时长(min)</th>
                                        <th class="">安全操作规程编号</th>
                                        <th class="">安全操作规程名称</th>
                                        
                                        <th class="">工装量具名称</th>
										<th class="">工装量具编号</th>
										<th class="">工装量具规格</th>
										<th class="">使用数量</th>
                                        
                                        <th class="">工序文件</th>
                                        <th class="">备注</th>
                                        <th class="">下一道工序</th>
                                    </tr>
                                </tbody>
                                <tbody class="tablelist">
                                    <tr class="listTableText list_list">
                                        <td>1</td>
                                        <td>001</td>
                                        <td>工序名</td>
                                        <td>检验工序</td>
                                        
                                         <td>30</td>
                                        <td>safety01</td>
                                        <td>ST0001</td>
                                      
                                      	<td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        
                                        <td></td>
                                        <td></td>
                                        <td>2</td>
                                    </tr>
                                    <tr class="listTableText list_list">
                                        <td>2</td>
                                        <td>001</td>
                                        <td>工序名</td>
                                        <td>生产工序</td>
                                        
                                         <td>30</td>
                                        <td>safety01</td>
                                        <td>ST0001</td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td>2</td>
                                    </tr>
                                    <tr class="listTableText list_list">
                                        <td>3</td>
                                        <td>001</td>
                                        <td>工序名</td>
                                        <td>生产工序</td>
                                         <td>30</td>
                                        <td>safety01</td>
                                        <td>ST0001</td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td>2</td>
                                    </tr>
                                </tbody>

                            </table>
                        </div>
	                    <!-- 页码区域 -->
	                    <div class="page_area contentText clear">
	                    	<div class="page_sum">
	                    		共<span class="page_number"> 3 </span>页&emsp;每页 10 条&emsp;共<span class="info_sum"> 3 </span>条记录
	                    	</div>
	                        <div class="page_jump">
	                        	<span>跳转到&emsp;第</span>
	                        	<input type="text" name="" id="" value="" />
	                        	<span>页&emsp;</span>
	                        	<button>Go</button>
	                        </div>
	                        <div class="page-pull-right async-page">
	                            <button>上一页</button>
	                            <button class="select_page">1</button>
	                            <button>2</button>
	                            <button>3</button>
	                            <button style="color: rgb(30, 30, 30);">▪▪▪</button>
	                            <button>98</button>
	                            <button>99</button>
	                            <button>100</button>
	                            <button>下一页</button>
	                        </div>
	                    </div>
                	<div>
            	</div>
                </div>
				
				
				
				<div id="childTableArea2" class="hidden">
					<div class="info_area">
				            <table class="tablelist" border="1" cellspacing="0" cellpadding="0">
				                <tbody>
				                    <tr class="menuText list_head">
				                    	<th class="">序号</th>
				                        <th class="">工序编号</th>
				                        <th class="">工序名称</th>
				                        <th class="">工序类型</th>
				                  
				                        <th class="">安全操作规程编号</th>
				                        <th class="">安全操作规程名称</th>
				                        
				                        <th class="">工装量具名称</th>
										<th class="">工装量具编号</th>
										<th class="">工装量具规格</th>
										<th class="">使用数量</th>
				                        
				                        <th class="">工序文件</th>
				                        <th class="">备注</th>
				                        <th class="">下一道工序</th>
				                    </tr>
				                </tbody>
				                <tbody class="tablelist">
				                    <tr class="listTableText list_list">
				                        <td>1</td>
				                        <td>001</td>
				                        <td>工序名</td>
				                        <td>检验工序</td>
				                        
				                        <td>safety01</td>
				                        <td>ST0001</td>
				                      
				                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
				                        <td></td>
				                        <td></td>
				                        <td>2</td>
				                    </tr>
				                    <tr class="listTableText list_list">
				                        <td>2</td>
				                        <td>001</td>
				                        <td>工序名</td>
				                        <td>生产工序</td>
				                        
				                        <td>safety01</td>
				                        <td>ST0001</td>
				                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
				                        <td></td>
				                        <td></td>
				                        <td>2</td>
				                    </tr>
				                    <tr class="listTableText list_list">
				                        <td>3</td>
				                        <td>001</td>
				                        <td>工序名</td>
				                        <td>生产工序</td>
				                        <td>safety01</td>
				                        <td>ST0001</td>
				                        <td></td>
                                        <td></td>
                                        <td></td>
                                        <td></td>
				                        <td></td>
				                        <td></td>
				                        <td>2</td>
				                    </tr>
				                </tbody>
				
				            </table>
				        </div>
				        <!-- 页码区域 -->
				        <div class="page_area contentText clear">
				        	<div class="page_sum">
				        		共<span class="page_number"> 3 </span>页&emsp;每页 10 条&emsp;共<span class="info_sum"> 3 </span>条记录
				        	</div>
				            <div class="page_jump">
				            	<span>跳转到&emsp;第</span>
				            	<input type="text" name="" id="" value="" />
				            	<span>页&emsp;</span>
				            	<button>Go</button>
				            </div>
				            <div class="page-pull-right async-page">
				                <button>上一页</button>
				                <button class="select_page">1</button>
				                <button>2</button>
				                <button>3</button>
				                <button style="color: rgb(30, 30, 30);">▪▪▪</button>
				                <button>98</button>
				                <button>99</button>
				                <button>100</button>
				                <button>下一页</button>
				            </div>
				        </div>
					<div>
				</div>
				</div>
				
			</div>
			
			<!-- 版尾  -->
			<div class="ending">
				Copyright© 2019-2020 磐基技术有限公司
			</div>
			
			<!-- 等待加载 -->
			<!--<div class="loader"><p class="load_hint">请等待加载••••••</p></div>-->
			
		</div>
	</body>
   <script type="text/javascript" src="../../js/3rd/ztree/jquery-1.4.4.min.js"></script>
	<script type="text/javascript" src="../../js/3rd/ztree/jquery.ztree.core.parts-3.5.js"></script>
	<script type="text/javascript" src="../../js/3rd/ztree/jquery.ztree.excheck-3.5.js"></script>
	<script type="text/javascript" src="../../js/3rd/ztree/jquery.ztree.exedit-3.5.js"></script>
	<script type="text/javascript" src="../../js/baseData/partsInfoProductTree.js"></script>
	<script type="text/javascript">
		
		// 点击增加
		function addParam(id){
			window.location.href="productTechnologyAdd.html"
		}
		
	</script>
	<script src='../../js/3rd/jquery-1.9.1.min.js' type='text/javascript' charset='utf-8'></script>
	
	<script src='../../js/common/common.js' type='text/javascript' charset='utf-8'></script>
	<script type="text/javascript">
		/* 点击显示子信息 */
		function showChildInfo(num){
			$("#childTableArea").addClass("hidden");
			$("#childTableArea2").addClass("hidden");
			if(num == 1){
				$("#childTableArea").removeClass("hidden");
			}else{
				$("#childTableArea2").removeClass("hidden");
			}
		}
		
			// 点击新增通用工艺
	/*$("#toAddJsp").click(function(){
			window.location.href = 'productTechnologyAdd.html';
			
	});*/
	
	// 点击修改通用工艺
	$("#toUpdateJsp").click(function(){
			window.location.href = 'productTechnologyUpdate.html';
			
	});
	
	// 批量删除工艺
		$("#del").click(function(){
			var list = [];//项目中要删除的id集合
			var checks = $("input[type='checkbox']:checked");
			$.each(checks,function(index, obj) {
				list.push(obj.id);
			});
		
			if(list.length <= 0) {
				alert("请至少选择一条数据");
				return;
			}
			
			window.confirm("确定要删除吗?",function(result){
				/*if(result){
					var deleteMaterialsUrl = basePath+"commonTechnology/deletesCommonTechnologyMethod";
					CommonUtils.getAjaxData({
						url : deleteMaterialsUrl,
						data : JSON.stringify(list),
						contentType : 'application/json; charset=utf-8',
						dataType:'json',
						type : 'POST',
						async:true,
					}, function(data) {
						if (data['msg'] =="SUCCESS"){
							getTableData();
						}
					});
				}*/
			});
	});
		
		
	</script>

	
	<!--<script src="../../js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="../../js/frame/common.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		var h = document.documentElement.clientHeight;
		$(".wrap").css("height", h);
		
		// 获取每行 td 的兄弟节点
		$("td").hover(   
			function () {      
				$(this).parent().children().addClass("td_hover");   
			},    
			function () {      
				$(this).parent().children().removeClass("td_hover");   
			}
		);
		
		
		//删除规则
	    function delUserGroup() {
			
	        var list = [];
	        var checks = $("input[name='ids']:checked");
	        $.each(checks, function(index, obj) {
	            list.push(obj.id);
	        });
	        if (!list.length > 0) {
	            alert("请选择要删除的内容");
	            return;
	        }
	        if (!confirm("确定要删除所选用户组吗？")) {
	            return;
	        }
	        alert("提醒:删除时，正在使用的用户组将无法删除！");
	        $.ajax({
	            type : 'POST',
	            url : 'userGroup/delUserGroup',
	            data : JSON.stringify(list),
	            contentType : 'application/json; charset=utf-8',
	            async : true,
	            cache : false,
	            success : function(data) {
	                alert(data == 'success' ? "删除成功" : "被使用：无法删除!!!");
	                if (data != 'success') {
	                    return;
	                }
	
	                var current = PageUtils._currentPage['userGroupPage'];
	                PageUtils.pageClick(current, 'userGroupPage');
	            }
	
	        });
	    }
	</script>-->
</html>
